<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>收益列表</title>
    <link rel="stylesheet" href="../css/fuwuqichuzuliebiao.css"/>
</head>
<script src="../js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">


    $(function () {
        $.ajax({
            type: "post",
            contentType: "application/json",
            url: "http://localhost:8888/cz/getServerBeCZ",
            async: false,
            beforeSend: function (request) {
                request.setRequestHeader("token", sessionStorage.getItem("token"));
            },
            success: function (data) {
                if (data.code == 1) {
                    var i = 0;
                    var list = data.data;
                    if (list.length > 0) {
                        for (i = 0; i < list.length; i++) {
                            $("table").append(" <tr>\n" +
                                "<th>" + list[i].serverChuZu.money + "</th>\n" +
                                "<th>" + list[i].serverChuZu.updateTime + "</th>\n" +
                                "<th>" + list[i].serverInfo.ip + "</th>\n" +
                                "<th>" + list[i].length + "</th>\n" +
                                "<tr>");
                        }
                    }

                } else {
                    alert(data.message);
                }

            }, error: function (data) {
                alert(data.message);
            }
        })
    })
</script>
<body>
<div class="view-container">
    <div class="view-cont">
        <h3>收益信息</h3>
        <div class="view-list">
            <table border="1" width="800px" height="150px" cellspacing="0" cellpadding="10" frame="solid" rules="solid"
                   align="center" valign="center">
                <tr style="height: 15px">
                    <th style="font-weight: 700;width: 218px;">金额</th>
                    <th style="font-weight: 700;width: 218px;">时间</th>
                    <th style="font-weight: 700;width: 218px;">服务器ip</th>
                    <th style="font-weight: 700;width: 218px;">备注</th>
                </tr>

            </table>
        </div>
    </div>
</div>
</body>
</html>
